/**
 * Model for product.
 */
Ext.define('appmod.model.User', {
    extend: 'Ext.data.Model',
	idProperty: 'id',
    fields: [
		'id',
        'name',
        'code',
        {name:'loginDate' , type:Ext.data.Types.DATE , dateFormat:'Y-m-d'},
        {name:'isCurrentUser' , type:Ext.data.Types.BOOLEAN}
    ],
	hasMany  : {model: 'appmod.model.User', name: 'subordinates', associationKey: 'subordinates'}    
});

